<style>
    .tag{
        display: inline-block;
        margin-right: 10px;
        padding: 5px 10px;
        border: 1px solid #ccc;
        cursor: pointer;
    }
    .select{
        background-color: #f89406;
        color: #fff;
    }
</style>
<div class="container-fluid" style="padding: 20px 10px 0px 10px">
	<div class="row-fluid">
		<div class="well">
		    <ul class="nav nav-tabs">
		      <li class="active"><b>绑定腕带</b></li>
		    </ul>
		    <div id="myTabContent" class="tab-content">
				<div class="tab-pane active in" id="home">
					<form id="formid" action="/patient/editPatient" method="post">
						<p>姓名：<input type="text" value="<?=$getData['patient_name']?>" placeholder="姓名" style="width:100px;" name="patient_name" class="patient_name"></p>
						<p>性别：<label style="display: inline-block"><input type="radio" value="1" placeholder="性别" name="sex" class="sex" <?=$getData['sex']=='1'?'checked':''?>>男</label><label style="display: inline-block;margin-left: 10px;"><input type="radio" value="0" placeholder="性别" name="sex" class="sex" <?=$getData['sex']=='0'?'checked':''?>>女</label></p>
						<p>年龄：<input type="text" value="<?=$getData['age']?>" placeholder="年龄" style="width:100px;" name="age" class="age"></p>
						<p>手机号：<input type="text" value="<?=$getData['mobile']?>" placeholder="手机号" style="width:100px;" name="mobile" class="mobile"></p>
						<p>微信号：<input type="text" value="<?=$getData['wechat']?>" placeholder="微信号" style="width:100px;" name="wechat" class="wechat"></p>
						<p>住院号：<input  name="hospital_num" class="input input-medium" type="text" placeholder="住院号" value="<?=$getData['hospital_num']?>" /></p>
						<p>门诊号：<input  name="outpatient_num" class="input input-medium" type="text" placeholder="住院号" value="<?=$getData['outpatient_num']?>" /></p>

						<input type="hidden" value="1" name="dosubmit" />
						<input type="hidden" value="<?=$patient_id?>" name="patient_id" />
					</form>
				</div>
				<div class="btn-toolbar">
				    <button class="btn btn-primary" id="btn-save" style="margin-left:72px;margin-top:20px"><i class="icon-save"></i> 保存</button>
				  <div class="btn-group">
				  </div>
				</div>
			</div>
		</div>
	</div>
</div>

<!-- <script type="text/javascript" src="http://api.map.baidu.com/api?v=2.0&ak=d7IG6wfuKy6EkfAvka9rm1GGztEE4GBO"></script> -->
<script>
$(function(){
	$('.setImdBtn1').click(function(){
		$('#setImd1').selfups();
	});
	$('.setImdBtn2').click(function(){
		$('#setImd2').selfups();
	});
	$('.setImdBtn3').click(function(){
		$('#setImd3').selfups();
	});

	$('.setImdBtn4').click(function(){
		$('#setImd4').selfups();
	});
	$('.setImdBtn5').click(function(){
		$('#setImd5').selfups();
	});
	$('.setImdBtn6').click(function(){
		$('#setImd6').selfups();
	});

	$('.setImdBtn').click(function(){
		$('#setImd').selfups();
	});



	$('#btn-save').click(function(){
		if($('input[name="patient_name"]').val() == ''){
			showmsg('患者名字不能为空！');
		}else if($('input[name="age"]').val() == ''){
			showmsg('患者年龄不能为空！');
		}else if($('input[name="mobile"]').val() == ''){
			showmsg('手机号不能为空！');
		}else if($('input[name="wechat"]').val() == ''){
			showmsg('微信号不能为空！');
		}else if($('input[name="hospital_num"]').val() == ''){
			showmsg('住院号不能为空！');
		}else if($('input[name="outpatient_num"]').val() == ''){
			showmsg('门诊号不能为空！');
		}else{
			setBtn($('#btn-save'));
			$('#formid').submit();
		}
	});
})
</script>